package com.example.vietvoicecmdsimple;

public class AskEngine {
	public static MainActivity mActivity;
	public static void Init(MainActivity activity){
		mActivity = activity;
	}
	
	public static void Ask(VObject vObj){
		for(int i = 0; i < VObject.MAXPARAMETERS; i++){
			if (vObj.Parameters[i].IsNeedAsk){
				VietTTSEngine.Speech(vObj.Parameters[i].Question);
				mActivity.StartVoiceInput();
			}
		}
	}
}
